home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.20030409-20031118 / 000375_anthonypieper@cs.com_Tue Nov 4 09:46:05 2003.msg < prev    next >
Internet Message Format  |  2020-01-01  |  2KB

  1. Path: newsmaster.cc.columbia.edu!panix!news.maxwell.syr.edu!postnews1.google.com!not-for-mail
  2. From: anthonypieper@cs.com (newexpectuser)
  3. Newsgroups: comp.protocols.kermit.misc
  4. Subject: Re: How do I pass a password in a kermit script
  5. Date: 4 Nov 2003 05:16:30 -0800
  6. Organization: http://groups.google.com
  7. Lines: 32
  8. Message-ID: <f0bb0f39.0311040516.50768d0a@posting.google.com>
  9. References: <f0bb0f39.0310300922.3c050ba8@posting.google.com> <slrnbq2iv8.oe.fdc@sesame.cc.columbia.edu> <m14qxn4nlk.gnus@usa.net> <bo5o0u$kqm$1@newsmaster.cc.columbia.edu> <f0bb0f39.0311031218.7169c675@posting.google.com> <Pine.HPX.4.44.0311031239110.3588-100000@fog.ccsf.cc.ca.us>
  10. NNTP-Posting-Host: 209.251.39.194
  11. Content-Type: text/plain; charset=ISO-8859-1
  12. Content-Transfer-Encoding: 8bit
  13. X-Trace: posting.google.com 1067951791 10786 127.0.0.1 (4 Nov 2003 13:16:31 GMT)
  14. X-Complaints-To: groups-abuse@google.com
  15. NNTP-Posting-Date: Tue, 4 Nov 2003 13:16:31 +0000 (UTC)
  16. Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14631
  17.  
  18. I don't think though that any version of Kermit can automatically
  19. delete a file it just transfered successfully though ?
  20. Mark Sapiro <msapiro@ccsf.edu> wrote in message news:<Pine.HPX.4.44.0311031239110.3588-100000@fog.ccsf.cc.ca.us>...
  21. > On 3 Nov 2003, newexpectuser wrote:
  22. > > We just want to use a password passed from a kermit script instead of using keys.
  23. > >
  24. > I don't know if this helps or not, but this is what I do with C-Kermit
  25. > 8.0.209 on FreeBSD Unix.
  26. > \m(rhost) and \m(rdomain) are set earlier in the script.
  27. > ...
  28. > assign pswd1 not
  29. > assign pswd2 equal
  30. > while not equal {\m(pswd1)} {\m(pswd2)} {
  31. >    askq pswd1 {Password for \v(userid) on \m(rhost):}
  32. >    askq pswd2 {Reenter to confirm:}
  33. >    }
  34. > set host /pty ssh -e none -l \v(userid) \m(rhost).\m(rdomain)
  35. > if fail end 1 Unable to connect to \m(rhost).
  36. > input 20 assword:
  37. > if fail end 1 No password prompt.
  38. > output \m(pswd1)\13
  39. > ...
  40. > The input and output statements see the password prompt from ssh
  41. > and supply the password.  It works in my situation.
  42. > Of course the password, host info and userid can be supplied in
  43. > many different ways to the script.
  44.